﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BankOrder
{
    public partial class Login : Form
    {
        private StaffSql staffSql = new StaffSql();
        public Login()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            bool sign = staffSql.loginServe(this.textBox1.Text, this.textBox2.Text);
            if (sign == true)
            {
                StaffPanel staffPanel = new StaffPanel();
                staffPanel.Show();
                //this.Dispose();
            }
            else
            {
                Debug.messageBox("请重新登录");
            }
        }
    }
}
